home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Cell Control / DATA1.CAB / DELPHIDM / UBack.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-01-11  |  773 b   |  39 lines

  1. unit UBack;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Tempunit, StdCtrls, ExtCtrls, ComCtrls, Buttons, OleCtrls, CELLLib_TLB;
  8.  
  9. type
  10.   TFBack = class(TTemplate)
  11.     RadioGroup1: TRadioGroup;
  12.     procedure RadioGroup1Click(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.  
  19. var
  20.   FBack: TFBack;
  21.  
  22. implementation
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TFBack.RadioGroup1Click(Sender: TObject);
  27. begin
  28.   inherited;
  29.       case RadioGroup1.ItemIndex of
  30.       0 : Cell1.DoSetBackGround(0);
  31.       1 : Cell1.DoSetBackGround(1);
  32.       2 : Cell1.DoSetBackGround(2);
  33.       3 : Cell1.DoSetBackGround(3);
  34.       4 : Cell1.DoSetBackGround(4);
  35.       end;
  36. end;
  37.  
  38. end.
  39.